package org.dromara.bclt.domain.bo;

import org.dromara.bclt.domain.Pushe;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.awt.*;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 手环-消息推送业务对象 bclt_pushe
 *
 * @author YHGao
 * @date 2024-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Pushe.class, reverseConvertGenerate = false)
public class PusheBo extends BaseEntity {

    /**
     * 消息推送id
     */
    private Long id;

    /**
     * 设备id
     */
//    @NotNull(message = "设备id不能为空", groups = { EditGroup.class })
    private Long deviceId;

    private String deviceNumber;
    /**
     * 设备id list
     */
//    @NotNull(message = "设备id不能为空", groups = { AddGroup.class })
    private List<Long> deviceIdList;

    /**
     * 消息推送类型（0:文本类型）
     */
//    @NotBlank(message = "消息推送类型（0:文本类型）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pusheType;

    /**
     * 标题
     */
//    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 内容
     */
//    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 推送时间
     */
    private Date pusheTime;

    /**
     * 消息状态（0:未读/1:已读）
     */
    private String messageStatus;
    /**
     * 标识app请求 1表示app
     */
    private Long client;


}
